from com.watermelon.rpa.functions import bubble_sort

'''
 多行注释
'''

# 单行注释

"""
多行注释
"""

# 循环和缩进

a = [12,34,546,67,43,76,34] #list
b = ("as","cd","we","vf","uy","we")  #元组
c = {"vf","er","uy","we","yt","er"}  #set

print(a[3]) #67

print('------------------')
'''
for i in c:
    print(i)
'''

print(type(b))

print('------------------')
#
'''
for i in c:
    if i == "yt":
        print(i)

'''
print('--------跳出所有----------')
#跳出所有

"""
i = 0

while i < len(b):
    if b[i] == "vf":
        print(b[i])
        break
    i+=1
"""

"""
for i in b:
    if i == "vf":
        print(i)
        break
"""

print('---------#跳出当次---------')
#跳出当次
"""
for i in b:
    if i == "vf":
        continue
    print(i)
"""

"""
print('------------------')
str = "Hello World"
print(type(str))
print(str[0:5])
print(str[6:])
print(str[::-1])
"""

list = [12,43,65,23,54,23,76,234,65,234,765,324]

sorted_arr = bubble_sort(list)
print("排序完成：",sorted_arr)
